const routes = [
  {
    path: '/user',
    component: '../layouts/TempLoginLayout',
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './Login',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['./src/components/PrivateRoute'],
    routes: [
      {
        path: '/',
        redirect: '/dashBoard',
        id: '001',
      },
      {
        path: '/dashBoard',
        name: 'Dashboard',
        component: './Dashboard',
        id: '002',
      },
      {
        path: '/priceManger',
        url: '/priceManger',
        name: '价格管理',
        title: '价格管理',
        id: '009',
        routes: [
          {
            name: '调价管理',
            title: '调价管理',
            path: '/priceManger',
            url: '/priceManger',
            component: './PriceManger',
            id: '010',
          },
        ],
      },
      {
        path: '/noticeManger',
        url: '/noticeManger',
        name: '通知管理',
        title: '通知管理',
        id: '011',
        routes: [
          {
            name: '首页通知',
            title: '首页通知',
            path: '/noticeManger',
            url: '/noticeManger',
            component: './NoticeManger',
            id: '012',
          },
        ],
      },
    ],
  },
];

export default routes;
